<?php
namespace app\api\controller;

use app\common\controller\ApiBase;
use app\common\model\UploadFilesModel;
use app\common\model\UserModel;

class User extends ApiBase
{
    protected UserModel $userModel;

    #需token认证的操作
    protected $needAuth = ['*'];
    #不需token认证的操作
    protected $noAuth = [];

    public function initialize()
    {
        parent::initialize();
        $this->userModel = new UserModel();
    }

    public function index()
    {
        $user = $this->getUser();
        retSuccess(compact('user'));
    }
}